layui.use(['layer'], function () {
    var $ = layui.jquery, layer = layui.layer;
    addHtml('1');
    function addHtml(dataList) {
        var html = "<div class='layui-table-tr layui-table-th'>" +
            "<div class='layui-custom-td custom-td2'>" +
            "<span>编号</span>" +
            "</div>" +
            "<div class='layui-custom-td custom-td1'>" +
            "<span>报修人</span>" +
            "</div>" +
            "<div class='layui-custom-td custom-td3'>" +
            "<span>报修时间</span>" +
            "</div>" +
            "<div class='layui-custom-td custom-td4'>" +
            "<span>报修内容</span>" +
            "</div>" +
            "<div class='layui-custom-td custom-td2'>" +
            "<span>当前状态</span>" +
            "</div>" +
            "</div>";
        if(null!=dataList&&dataList.length>0){
            for (var i=0;i<dataList.length;i++){
                html=html+"<a class='layui-table-tr' href='#' target='_blank'>" +
                    " <div class='layui-custom-td custom-td2'>" +
                    "<span>编号</span>" +
                    "            </div>" +
                    "            <div class='layui-custom-td custom-td1'>" +
                    "                <span>报修人</span>" +
                    "            </div>" +
                    "            <div class='layui-custom-td custom-td3'>" +
                    "                <span>报修时间</span>" +
                    "            </div>" +
                    "            <div class='layui-custom-td custom-td4'>" +
                    "                <span>报修内容</span>" +
                    "            </div>" +
                    "            <div class='layui-custom-td custom-td2'>" +
                    "                <span>当前状态</span>" +
                    "            </div>" +
                    "        </a>";
            }
        }
        $(".myui-custom-lc").html(html);
    }
});
    